aux_source_directory(./logger LOGGER_SRC)
aux_source_directory(./utils SERVER_SRC)

aux_source_directory(./utils UTILS_SRC)

add_definitions("-g -std=c++11")


# add_executable(server ./utils/tcpServer.cc ./utils/IpAddressPort.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(client ./utils/tcpClient.cc ./utils/IpAddressPort.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(thread ./thread/thread.cc ./reactor/reactor.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(threadPool ./thread/thread.cc ./threadPool/threadPool.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(reactor ./reactor/reactor.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(controller ./view/view.cc ./controller/controller.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(view ./view/view.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# add_executable(server ./mainServer/mainServer.cc ./utils/tcpServer.cc ./utils/IpAddressPort.cc ./threadPool/threadPool.cc ./thread/thread.cc ./reactor/reactor.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
add_executable(sql ./mysql/mysql.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)
# target_link_libraries(reactor event)
# target_link_libraries(threadPool pthread)
# target_link_libraries(server pthread event)
target_link_libraries(sql mysqlclient)